<?php

namespace app\admin\controller\flow;

use app\common\controller\Backend;
use app\common\library\FlowEngine;
use think\Config;
use think\Db;
use think\Exception;
use fast\Random;
use think\addons\Service;
use think\Cache;
use think\Lang;

class Ajaxdata extends Backend
{
    protected $payModel = null;
    protected $communityModel = null;
    public function _initialize()
    {
        parent::_initialize();
        $this->payModel = model('pay');
    }

    public function paylist() {
       // $list=$this->payModel->field(['id as value,summary as label,amount,remark,status'])->select();
       $list=$this->payModel->field(['id as value,CONCAT("摘要:",summary," -金额:",amount,"-状态",if(status=0,"未付","已付"),"-备注:",remark) as label'])->select();
        return  json_encode($list );
    }
}